package cn.jn.lhm.teacher.feign;

import cn.jn.lhm.teacher.feign.impl.VodClientImpl;
import cn.jn.lhm.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author LHM
 * @Tips 热爱每一天，奋斗每一天
 * @date 2020/6/8 - 19:44
 */
@FeignClient(value = "vod-service",fallback = VodClientImpl.class)
@Component
public interface VodClient {

    /**
     * 远程调用vod的方法
     * @param id vod的ID
     * @return R
     */
    @DeleteMapping("/vod/deleteVod/{id}")
    public R deleteVodById(@PathVariable("id")String id);


    @DeleteMapping("/vod/batch/delete")
    public R deleteBatch(@RequestParam("videoIds") List<String> videoIdList);
}
